package com.shuang.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DbShippingInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DbShippingInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSiIdIsNull() {
            addCriterion("si_id is null");
            return (Criteria) this;
        }

        public Criteria andSiIdIsNotNull() {
            addCriterion("si_id is not null");
            return (Criteria) this;
        }

        public Criteria andSiIdEqualTo(Long value) {
            addCriterion("si_id =", value, "siId");
            return (Criteria) this;
        }

        public Criteria andSiIdNotEqualTo(Long value) {
            addCriterion("si_id <>", value, "siId");
            return (Criteria) this;
        }

        public Criteria andSiIdGreaterThan(Long value) {
            addCriterion("si_id >", value, "siId");
            return (Criteria) this;
        }

        public Criteria andSiIdGreaterThanOrEqualTo(Long value) {
            addCriterion("si_id >=", value, "siId");
            return (Criteria) this;
        }

        public Criteria andSiIdLessThan(Long value) {
            addCriterion("si_id <", value, "siId");
            return (Criteria) this;
        }

        public Criteria andSiIdLessThanOrEqualTo(Long value) {
            addCriterion("si_id <=", value, "siId");
            return (Criteria) this;
        }

        public Criteria andSiIdIn(List<Long> values) {
            addCriterion("si_id in", values, "siId");
            return (Criteria) this;
        }

        public Criteria andSiIdNotIn(List<Long> values) {
            addCriterion("si_id not in", values, "siId");
            return (Criteria) this;
        }

        public Criteria andSiIdBetween(Long value1, Long value2) {
            addCriterion("si_id between", value1, value2, "siId");
            return (Criteria) this;
        }

        public Criteria andSiIdNotBetween(Long value1, Long value2) {
            addCriterion("si_id not between", value1, value2, "siId");
            return (Criteria) this;
        }

        public Criteria andSiNameIsNull() {
            addCriterion("si_name is null");
            return (Criteria) this;
        }

        public Criteria andSiNameIsNotNull() {
            addCriterion("si_name is not null");
            return (Criteria) this;
        }

        public Criteria andSiNameEqualTo(String value) {
            addCriterion("si_name =", value, "siName");
            return (Criteria) this;
        }

        public Criteria andSiNameNotEqualTo(String value) {
            addCriterion("si_name <>", value, "siName");
            return (Criteria) this;
        }

        public Criteria andSiNameGreaterThan(String value) {
            addCriterion("si_name >", value, "siName");
            return (Criteria) this;
        }

        public Criteria andSiNameGreaterThanOrEqualTo(String value) {
            addCriterion("si_name >=", value, "siName");
            return (Criteria) this;
        }

        public Criteria andSiNameLessThan(String value) {
            addCriterion("si_name <", value, "siName");
            return (Criteria) this;
        }

        public Criteria andSiNameLessThanOrEqualTo(String value) {
            addCriterion("si_name <=", value, "siName");
            return (Criteria) this;
        }

        public Criteria andSiNameLike(String value) {
            addCriterion("si_name like", value, "siName");
            return (Criteria) this;
        }

        public Criteria andSiNameNotLike(String value) {
            addCriterion("si_name not like", value, "siName");
            return (Criteria) this;
        }

        public Criteria andSiNameIn(List<String> values) {
            addCriterion("si_name in", values, "siName");
            return (Criteria) this;
        }

        public Criteria andSiNameNotIn(List<String> values) {
            addCriterion("si_name not in", values, "siName");
            return (Criteria) this;
        }

        public Criteria andSiNameBetween(String value1, String value2) {
            addCriterion("si_name between", value1, value2, "siName");
            return (Criteria) this;
        }

        public Criteria andSiNameNotBetween(String value1, String value2) {
            addCriterion("si_name not between", value1, value2, "siName");
            return (Criteria) this;
        }

        public Criteria andSiMoneyIsNull() {
            addCriterion("si_money is null");
            return (Criteria) this;
        }

        public Criteria andSiMoneyIsNotNull() {
            addCriterion("si_money is not null");
            return (Criteria) this;
        }

        public Criteria andSiMoneyEqualTo(Long value) {
            addCriterion("si_money =", value, "siMoney");
            return (Criteria) this;
        }

        public Criteria andSiMoneyNotEqualTo(Long value) {
            addCriterion("si_money <>", value, "siMoney");
            return (Criteria) this;
        }

        public Criteria andSiMoneyGreaterThan(Long value) {
            addCriterion("si_money >", value, "siMoney");
            return (Criteria) this;
        }

        public Criteria andSiMoneyGreaterThanOrEqualTo(Long value) {
            addCriterion("si_money >=", value, "siMoney");
            return (Criteria) this;
        }

        public Criteria andSiMoneyLessThan(Long value) {
            addCriterion("si_money <", value, "siMoney");
            return (Criteria) this;
        }

        public Criteria andSiMoneyLessThanOrEqualTo(Long value) {
            addCriterion("si_money <=", value, "siMoney");
            return (Criteria) this;
        }

        public Criteria andSiMoneyIn(List<Long> values) {
            addCriterion("si_money in", values, "siMoney");
            return (Criteria) this;
        }

        public Criteria andSiMoneyNotIn(List<Long> values) {
            addCriterion("si_money not in", values, "siMoney");
            return (Criteria) this;
        }

        public Criteria andSiMoneyBetween(Long value1, Long value2) {
            addCriterion("si_money between", value1, value2, "siMoney");
            return (Criteria) this;
        }

        public Criteria andSiMoneyNotBetween(Long value1, Long value2) {
            addCriterion("si_money not between", value1, value2, "siMoney");
            return (Criteria) this;
        }

        public Criteria andSiCreateTimeIsNull() {
            addCriterion("si_create_time is null");
            return (Criteria) this;
        }

        public Criteria andSiCreateTimeIsNotNull() {
            addCriterion("si_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andSiCreateTimeEqualTo(Date value) {
            addCriterion("si_create_time =", value, "siCreateTime");
            return (Criteria) this;
        }

        public Criteria andSiCreateTimeNotEqualTo(Date value) {
            addCriterion("si_create_time <>", value, "siCreateTime");
            return (Criteria) this;
        }

        public Criteria andSiCreateTimeGreaterThan(Date value) {
            addCriterion("si_create_time >", value, "siCreateTime");
            return (Criteria) this;
        }

        public Criteria andSiCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("si_create_time >=", value, "siCreateTime");
            return (Criteria) this;
        }

        public Criteria andSiCreateTimeLessThan(Date value) {
            addCriterion("si_create_time <", value, "siCreateTime");
            return (Criteria) this;
        }

        public Criteria andSiCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("si_create_time <=", value, "siCreateTime");
            return (Criteria) this;
        }

        public Criteria andSiCreateTimeIn(List<Date> values) {
            addCriterion("si_create_time in", values, "siCreateTime");
            return (Criteria) this;
        }

        public Criteria andSiCreateTimeNotIn(List<Date> values) {
            addCriterion("si_create_time not in", values, "siCreateTime");
            return (Criteria) this;
        }

        public Criteria andSiCreateTimeBetween(Date value1, Date value2) {
            addCriterion("si_create_time between", value1, value2, "siCreateTime");
            return (Criteria) this;
        }

        public Criteria andSiCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("si_create_time not between", value1, value2, "siCreateTime");
            return (Criteria) this;
        }

        public Criteria andSiUpdateTimeIsNull() {
            addCriterion("si_update_time is null");
            return (Criteria) this;
        }

        public Criteria andSiUpdateTimeIsNotNull() {
            addCriterion("si_update_time is not null");
            return (Criteria) this;
        }

        public Criteria andSiUpdateTimeEqualTo(Date value) {
            addCriterion("si_update_time =", value, "siUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSiUpdateTimeNotEqualTo(Date value) {
            addCriterion("si_update_time <>", value, "siUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSiUpdateTimeGreaterThan(Date value) {
            addCriterion("si_update_time >", value, "siUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSiUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("si_update_time >=", value, "siUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSiUpdateTimeLessThan(Date value) {
            addCriterion("si_update_time <", value, "siUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSiUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("si_update_time <=", value, "siUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSiUpdateTimeIn(List<Date> values) {
            addCriterion("si_update_time in", values, "siUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSiUpdateTimeNotIn(List<Date> values) {
            addCriterion("si_update_time not in", values, "siUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSiUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("si_update_time between", value1, value2, "siUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSiUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("si_update_time not between", value1, value2, "siUpdateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}